import request from '@/utils/request'

export function getRolesList(params) {
  return request({
    url: '/pm/roles/roles',
    method: 'get',
    params
  })
}
export function trolesList(params) {
  return request({
    url: '/pm/roles/findAll',
    method: 'get',
    params
  })
}

export function deleteById(id) {
  return request({
    url: '/pm/roles/deleteById?id='+id,
    method: 'post'
  })
}
export function deleteByIds(data) {
  return request({
    url: '/pm/roles/deleteByIds',
    method: 'post',
    data
  })
}
export function addRoles(data) {
  return request({
    url: '/pm/roles/add',
    method: 'post',
    data
  })
}
export function updateRoles(data) {
  return request({
    url: '/pm/roles/update',
    method: 'post',
    data
  })
}

